When working in color mode , the module pursues to do the color regress work based on polynomial color regress algorithm , which make the images captured standard in color and brightness . while working in gray mode , the module transforms the color images to the gray ones , base on an algorithm which presented in this paper . the name of it is adaptable gray converting algorithm the merging module is the kernel of our capturing system 當工作在彩色模式時,該模塊利用基于多項式線性回歸的算法進行彩色圖像的顏色還原,使采集來的圖像在色彩和亮度上回歸到cie的標準色彩空間;工作在灰度模式時,該模塊利用本文提出的一種基于方差極值的自適應灰度轉換算法進行彩色圖像轉灰度操作,自動實現了彩色轉灰度的過程中最大限度保留原有細節的目的。